﻿import request from '@/utils/request';
// list
export const jidiList = (params) => {
    return request({
        url: '/jidi/page',
        method: 'post',
        data: params,
    })
};
export const jidiDetail = (id) => {
    return request({
        url: '/jidi/'+id,
        method: 'get',
    })
};
// add
export const jidiSave = (params) => {
    return request({
        url: '/jidi',
        method: 'post',
        data: params,
    })
};
// updt
export const jidiEdit = (params) => {
    return request({
        url: '/jidi',
        method: 'put',
        data: params,
    })
};
// delete
export const jidiDelete = (id) => {
    return request({
        url: '/jidi/'+id,
        method: 'delete',
    })
};
// pldel
export const jidiDeleteList = (jidis) => {
    return request({
        url: '/jidi/deleteList',
        data:{list:jidis},
        method: 'post',
    })
};
// all
export const jidiAllList = () => {
    return request({
        url: '/jidi',
        method: 'get',
    })
};

